import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'


// 实时监控
import Main from './views/Main.vue'

// 视频监控
import Video from './views/video.vue'

// 用车管理
import Xuqiubiao from './views/uscar_manage/xuqiubiao.vue'
import Diaodu from './views/uscar_manage/diaodu.vue'
import Tongzhi from './views/uscar_manage/tongzhi.vue'
import Xinxibiao from './views/uscar_manage/Xinxibiao.vue'
import Usingcar from './views/uscar_manage/usingcar.vue'

// 基础信息
import List from './views/basic_info/list.vue'
import Drivers from './views/basic_info/drivers.vue'
import Car_manage from './views/basic_info/car_manage.vue'
import Driver_detail from './views/basic_info/driver_detail'
import See_detail from './views/basic_info/see_detail.vue'
import Add_detail from './views/basic_info/add_detail.vue'


// 供应商管理
import Carcheck from './views/applier_manage/carcheck.vue'
import Gongyin_sh from './views/applier_manage/gongyin_sh.vue'
import Addcar from './views/applier_manage/addcar.vue'
import Add_driver from './views/applier_manage/add_driver.vue'
import Verify from './views/applier_manage/verify.vue'


// 财务管理
import Shouru from './views/finantial_manage/shouru.vue'
import Jiesuan from './views/finantial_manage/jiesuan.vue'


let routes = [{
		path: '/login',
		component: Login,
		name: 'login',
		hidden: true
	},
	{
		path: '/404',
		component: NotFound,
		name: '404',
		hidden: true
	},
	{
		path: '*',
		hidden: true,
		redirect: {
			path: '/list'
		}
	},
	{
		path: '/Home',
		component: Home,
		name: '实时监控',
		iconCls: 'fa fa-dashboard',
		leaf: true, //只有一个节点
		children: [{
			path: '/main',
			component: Main,
			name: '实时监控'
		}]
	},
	{
		path: '/Home',
		component: Home,
		name: '视频监控',
		iconCls: 'fa fa-video-camera',
		leaf: true, //只有一个节点
		children: [{
			path: '/video',
			component: Video,
			name: '视频监控'
		}]
	},
	{
		path: '/Home',
		component: Home,
		name: '用车管理',
		iconCls: 'fa fa-edit',
		children: [{
				path: '/xuqiubiao',
				component: Xuqiubiao,
				name: '需求表管理'
			},
			{
				path: '/diaodu',
				component: Diaodu,
				name: '调度单管理'
			},
			{
				path: '/tongzhi',
				component: Tongzhi,
				name: '通知单管理'
			},
			{
				path: '/xinxibiao',
				component: Xinxibiao,
				name: '信息表'
			},
			{
				path: '/usingcar',
				component: Usingcar,
				name: '在用车辆'
			},
		]
	},
	{
		path: '/Home',
		component: Home,
		name: '基础信息',
		iconCls: 'fa fa-edit',
		children: [{
				path: '/list',
				component: List,
				name: '车辆管理'
			},
			{
				path: '/drivers',
				component: Drivers,
				name: '驾驶员管理'
			},
			{
				path: '/car_manage',
				component: Car_manage,
				name: '车辆详情',
				hidden: true
			},
			{
				path: '/driver_detail',
				component: Driver_detail,
				name: '驾驶员详情',
				hidden: true
			},
			{
				path: '/see_detail',
				component: See_detail,
				name: '车辆检查详情',
				hidden: true
			},
			{
				path: '/add_detail',
				component: Add_detail,
				name: '新增检查',
				hidden: true
			}
		]
	},
	{
		path: '/Home',
		component: Home,
		name: '供应商管理',
		iconCls: 'fa fa-edit',
		children: [{
				path: '/carcheck',
				component: Carcheck,
				name: '车辆检查'
			},
			{
				path: '/gongyin_sh',
				component: Gongyin_sh,
				name: '供应商审核'
			},
			{
				path: '/addcar',
				component: Addcar,
				name: '新增车辆',
				hidden: true
			},
			{
				path: '/add_driver',
				component: Add_driver,
				name: '新增驾驶员',
				hidden: true
			},
			{
				path: '/verify',
				component: Verify,
				name: '整改',
				hidden: true
			},
			
		]
	},
	{
		path: '/Home',
		component: Home,
		name: '财务管理',
		iconCls: 'fa fa-edit',
		children: [{
				path: '/shouru',
				component: Shouru,
				name: '服务收入'
			},
			{
				path: '/jiesuan',
				component: Jiesuan,
				name: '结算单'
			}
		]
	}
];

export default routes;
